home *** CD-ROM | disk | FTP | other *** search
- /*
- * UHandleObject.h
- * based on Relocatable.h by Patrick C. Beard. ©1989,90 by Patrick Beard.
- *
- * KNOWN BUGS AND SHORTCOMINGS:
- * [none]
- */
-
- #ifndef __UHANDLEOBJECT__
- #define __UHANDLEOBJECT__
-
- #ifndef __MEMORY__
- #include <Memory.h>
- #endif
-
- class THandleObject: private HandleObject {
- protected:
- SignedByte GetState();
- void Lock();
- SignedByte LockHigh();
- void MoveHigh();
- void SetState(SignedByte flags);
- void Unlock();
- };
-
- /* —————————————————————————————————— inline definitions —————————————————————————————————— */
-
- inline SignedByte THandleObject::GetState() {
- return HGetState((Handle)this);
- }
-
- inline void THandleObject::Lock() {
- HLock((Handle)this);
- }
-
- inline void THandleObject::MoveHigh() {
- MoveHHi((Handle)this);
- }
-
- inline void THandleObject::SetState(SignedByte flags) {
- HSetState((Handle)this, flags);
- }
-
- inline void THandleObject::Unlock() {
- HUnlock((Handle)this);
- }
-
- #endif